<%@ 
page language="java" 
import="java.util.*" 
import="com.csd.helper.IConstant"
import="com.csd.vo.UserVO"
import="com.csd.pojo.Score"
pageEncoding="UTF-8"
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
HttpSession s = request.getSession();
UserVO uvo =  (UserVO)s.getAttribute(IConstant.userVO);
if(uvo==null)
{
	response.sendRedirect(path);
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码修改</title>
<link href="<%=path %>/common/css/rpms_right.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
	function checkCode()
	{
		var pswd1 = document.getElementById('newpassword1');
		var pswd2 = document.getElementById('newpassword2');
		var button = document.getElementById('button');
		var info = document.getElementById("info");
		
		if(pswd1.value == pswd2.value)
		{
			button.disabled = false;
			info.style.display = "none";
		}
		else
		{
			button.disabled = true;			
			info.style.display = "block";
		}
	}
</script>

<body>
    <div class="main">
    	<h1>密码修改</h1>
        <hr />
        <h3>&nbsp;</h3>
        <form action="<%=path%>/passwordSave.action" method="post">
        <table width="100%" align="center">
        	<tr>
            	<td class="form_strong" width="50%" align="right">当前密码：</td>
                <td>
                	<input type="password" size="32" maxlength="32"  name="oldPassword" />
                </td>
            </tr>
            <tr>
            	<td class="form_strong" align="right">新密码：</td>
                <td>
                	<input type="password" size="32" maxlength="32"  id="newpassword1" onkeyup="checkCode()"  />
                </td>
            </tr>
            <tr>
            	<td class="form_strong" align="right">确认新密码：</td>
                <td>
                	<input type="password" size="32" maxlength="32" name="newPassword"  id="newpassword2" onkeyup="checkCode()" />
                </td>
            </tr>
            <tr>
            	<td colspan="2" align="center">
            		<span id="info" style="display:none; color:#E11">你输入的新密码不一致</span>
                	<input type="submit" id="button" value="  提交  " />
                </td>
            </tr>
        </table>    
        </form>    
    </div>
</body>
</html>
